package com.song.demo11springboottask;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


@EnableAsync//开启异步功能
@EnableScheduling//开启定时功能，配合@Scheduled注解使用
@SpringBootApplication
public class Demo11SpringbootTaskApplication {

    public static void main(String[] args) {
        SpringApplication.run(Demo11SpringbootTaskApplication.class, args);
        System.out.println("启动了");
    }

}
